import java.awt.Color;
import java.awt.Frame;
import java.awt.Graphics;

public class BackGround extends Frame{
	
	BilliardBall bb;
		
	public void draw(Graphics g){
		Color c = g.getColor();
		g.setColor(Color.GREEN);
		g.fillRect(20, 40, bb.GAME_X, bb.GAME_Y);
		g.setColor(Color.BLACK);
		g.fillOval(5, 20, 40, 40);
		g.fillOval(bb.BACK_X/2-20, 20, 40, 40);
		g.fillOval(bb.BACK_X-45, 20, 40, 40);
		g.fillOval(5,bb.BACK_Y-40, 40, 40);
		g.fillOval(bb.BACK_X/2-20, bb.BACK_Y-40, 40, 40);
		g.fillOval(bb.BACK_X-45, bb.BACK_Y-40, 40, 40);
		g.setColor(Color.WHITE);
		g.drawRect(100, 25, 100, 10);
		g.setColor(c);
	}
	
}
